<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.jsdelivr.net/npm/vue"></script>
</head>
<body>
<div id="app">
    {{message}}
    <div>{{zhuqianli}}</div>

</div>

<hr>
<div id="app2">

        <span v-bind:title="message">
            鼠标停留
        </span>
</div>
<hr>

<div id="app3">
    <p v-if="is_show">是否显示此内容</p>
</div>

<hr>

<div id="app4">
    <ol>
        <li v-for="msg in msg_list">
            {{msg}}
        </li>
    </ol>
</div>

<hr>

<div id="app5">
    <p>{{message}}</p>
    <button v-on:click="reverseMessage">消息逆转</button>
</div>

<hr>

<div id="app6">
    <p>
      {{message}}
    </p>
    <input v-model="message">
</div>


<script>
    var app = new Vue({
        el: "#app",
        data: {
            message: "hello vue!",
            zhuqianli: "abcd123中文"
        }
    });

    var app2 = new Vue({
        el: "#app2",
        data: {
            message: "当前时间为" + new Date().toLocaleString()
        }
    });

    var app3 = new Vue({
        el: "#app3",
        data: {
            is_show: true
        }
    });

    var app4 = new Vue({
        el: "#app4",
        data: {
            msg_list: ["good", "bad", "neutral"]
        }
    })

    var app5 = new Vue({
       el : "#app5",
       data : {message : "1,2,3,4,5,6,7,8,9,10"},
       methods : {
           reverseMessage : function () {
               console.log(this);
               this.message = this.message.split    (",").reverse().join(",");
           }
       }
    });

    var app6 = new Vue({
        el : "#app6",
        data : {
            message : "hello v-model    "
        }
    });

</script>
</body>
</html>